package com.qf.myexception;


import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@Data
@NoArgsConstructor
public class ServiceException extends RuntimeException{
    private int code;

    public ServiceException(int code, String msg){
        super(msg);
        this.code=code;

    }
}
